#include<stdio.h>
int main()
{
 int n,i,j,flag=0;
 printf("enter two number = ");
 scanf("%d",&n);
 printf("enter the number");
 scanf("%d",&j);
 for(i=2;i<=n/2;i++)

  {
   if(n%i==0)
     { flag=0;
       break;
     } 
      else
      flag=1;
   }
   for(j=2;j<=n/2;j++)
  {
   if(n%i==0)
     { flag=0;
       break;
     } 
      else
      flag=1;
    }
   if(flag==0)
    printf("the number is not prime\n");
   else
     printf("the number is prime\n");
    return 0;
}
